package com.aiguigu.cloud.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ArticleDTO {

    private Integer id;

    private String title;

    @JsonProperty(value = "cover_img")
    private String coverImg;

    private String content;

    private Integer state;

    @JsonProperty(value = "category_id")
    private Integer categoryId;

    @JsonProperty(value = "user_id")
    private Integer userId;
}
